package com.yc.sole.framework.result;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yizuomin
 * @date 2022/11/19 13:05
 **/
@Getter
@AllArgsConstructor
public enum BaseResultEnum implements IResultMsg {

    DATA_NOT_EXIST(100, "数据不存在"),
    ENUM_ERROR(101, "枚举值错误"),
    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    ERROR(500, "服务异常，请联系管理员"),
    REMOTE_CLIENT_ERROR(9999, "远程连接异常"),
    CAN_NOT_DELETE(600,"当前数据【{0}】，无法删除"),
    CAN_NOT_UPDATE(601,"当前数据【{0}】，无法修改"),
    ;

    private final Integer code;

    private final String message;
}
